const { defineConfig } = require('@vue/cli-service')
const AppConfig = require('./src/config/AppConfig');

module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: config => {
    config.plugin('html').tap(apps => {
      apps[0].title = AppConfig.AppName;
      return apps;
    });
    return config;
  },
  devServer:{
    host: '0.0.0.0',
    port:8080,
    client: {
      webSocketURL: 'ws://0.0.0.0:8080/ws',
    },
    headers: {
      'Access-Control-Allow-Origin': '*',
    }
  }
});
